package com.desginer.struct.briage;

/**
 * 将系统功能和平台业务功能抽离
 */
public class BridgeTest {


    public static void main(String[] args) {

        UserRole userRole = new NormalRole(new SelfDataStragtegy());

        userRole.checkDataPermission();

        UserRole adminRole = new AdminRole(new DeptDataStrategy());
        adminRole.checkDataPermission();

    }

}
